# 生成器函数
def intNum():
    print("开始执行")
    for i in range(5):
        yield i # 暂停   scrapy框架时候 管道问题
        # return i
        """不要搞混了！"""
        # break  循环的终止语句
        # continue  跳出本次循环
        print("继续执行")



num = intNum()
print(num)
# print(num)  # generator
# print(num.__next__())
# print(num.__next__())
# print(num.__next__())
# print(num.__next__())
# print(num.__next__())

for i in num:
  print(i)
